Optimal. Leaf size=66 \[ \frac{x^{m+1} (A b-a B) \, _2F_1\left (1,\frac{m+1}{2};\frac{m+3}{2};-\frac{b x^2}{a}\right )}{a b (m+1)}+\frac{B x^{m+1}}{b (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0330978, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {459, 364} \[ \frac{x^{m+1} (A b-a B) \, _2F_1\left (1,\frac{m+1}{2};\frac{m+3}{2};-\frac{b x^2}{a}\right )}{a b (m+1)}+\frac{B x^{m+1}}{b (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 459
Rule 364
Rubi steps
\begin{align*} \int \frac{x^m \left (A+B x^2\right )}{a+b x^2} \, dx &=\frac{B x^{1+m}}{b (1+m)}-\frac{(-A b (1+m)+a B (1+m)) \int \frac{x^m}{a+b x^2} \, dx}{b (1+m)}\\ &=\frac{B x^{1+m}}{b (1+m)}+\frac{(A b-a B) x^{1+m} \, _2F_1\left (1,\frac{1+m}{2};\frac{3+m}{2};-\frac{b x^2}{a}\right )}{a b (1+m)}\\ \end{align*}
Mathematica [A] time = 0.059056, size = 55, normalized size = 0.83 \[ \frac{x^{m+1} \left ((A b-a B) \, _2F_1\left (1,\frac{m+1}{2};\frac{m+3}{2};-\frac{b x^2}{a}\right )+a B\right )}{a b (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.031, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( B{x}^{2}+A \right ){x}^{m}}{b{x}^{2}+a}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B x^{2} + A\right )} x^{m}}{b x^{2} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (B x^{2} + A\right )} x^{m}}{b x^{2} + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 4.79152, size = 190, normalized size = 2.88 \begin{align*} \frac{A m x x^{m} \Phi \left (\frac{b x^{2} e^{i \pi }}{a}, 1, \frac{m}{2} + \frac{1}{2}\right ) \Gamma \left (\frac{m}{2} + \frac{1}{2}\right )}{4 a \Gamma \left (\frac{m}{2} + \frac{3}{2}\right )} + \frac{A x x^{m} \Phi \left (\frac{b x^{2} e^{i \pi }}{a}, 1, \frac{m}{2} + \frac{1}{2}\right ) \Gamma \left (\frac{m}{2} + \frac{1}{2}\right )}{4 a \Gamma \left (\frac{m}{2} + \frac{3}{2}\right )} + \frac{B m x^{3} x^{m} \Phi \left (\frac{b x^{2} e^{i \pi }}{a}, 1, \frac{m}{2} + \frac{3}{2}\right ) \Gamma \left (\frac{m}{2} + \frac{3}{2}\right )}{4 a \Gamma \left (\frac{m}{2} + \frac{5}{2}\right )} + \frac{3 B x^{3} x^{m} \Phi \left (\frac{b x^{2} e^{i \pi }}{a}, 1, \frac{m}{2} + \frac{3}{2}\right ) \Gamma \left (\frac{m}{2} + \frac{3}{2}\right )}{4 a \Gamma \left (\frac{m}{2} + \frac{5}{2}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B x^{2} + A\right )} x^{m}}{b x^{2} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]